﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FazaDemo.PL.AbstractPresenters;

namespace FazaDemo.PL.EventFactories
{
    public class ConcreteEvent
    {

        private readonly Action<ConcreteEvent> _action;

        public ConcreteEvent(Action<ConcreteEvent> action)
        {
            _action = action;
        }

        public IPresenter Presenter { get; set; }

        public EventArgs EventArgs { get; set; }

        public void ExecuteAction()
        {
            if (_action != null)
                _action(this);
        }

    }
}
